﻿<!DOCTYPE html>
<html style="font-size: 40px;" data-dpr="1" lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  	<title>订单列表</title>
  	<meta charset="utf-8">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta content="fullscreen=yes,preventMove=no" name="ML-Config">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no,email=no,address=no">
     <meta content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" name="viewport">
      <link href="/shop/templates/default/css/style.css" rel="stylesheet" />
    <link href="/shop/templates/default/css/templates.css" rel="stylesheet" />	
	<link rel="stylesheet" type="text/css" href="/shop/templates/default/css/myorder.css">
    <script type="text/javascript">
        var basePath = "{$yuming}", baseParam = "openid={$openid}&wid={$wid}&shopid={$shopid}";
    </script>
		 <script>
	//document.domain = 'clofood.cn';
	! function(a) {
		function b() {
			var b = g.getBoundingClientRect().width;
			b / c > 640 && (b = 640 * c), a.rem = b / 16, g.style.fontSize = a.rem + "px"
		}
		var c, d, e, f = a.document,
			g = f.documentElement,
			h = f.querySelector('meta[name="viewport"]'),
			i = f.querySelector('meta[name="flexible"]');
		if (h) {
			var j = h.getAttribute("content").match(/initial\-scale=(["']?)([\d\.]+)\1?/);
			j && (d = parseFloat(j[2]), c = parseInt(1 / d))
		} else if (i) {
			var j = i.getAttribute("content").match(/initial\-dpr=(["']?)([\d\.]+)\1?/);
			j && (c = parseFloat(j[2]), d = parseFloat((1 / c).toFixed(2)))
		}
		if (!c && !d) {
			var k = (a.navigator.appVersion.match(/android/gi), a.navigator.appVersion.match(/iphone/gi)),
				c = a.devicePixelRatio;
			c = k ? c >= 3 ? 3 : c >= 2 ? 2 : 1 : 1, d = 1 / c
		}
		if (g.setAttribute("data-dpr", c), !h)
			if (h = f.createElement("meta"), h.setAttribute("name", "viewport"), h.setAttribute("content", "initial-scale=" + d + ", maximum-scale=" + d + ", minimum-scale=" + d + ", user-scalable=no"), g.firstElementChild) g.firstElementChild.appendChild(h);
			else {
				var l = f.createElement("div");
				l.appendChild(h), f.write(l.innerHTML)
			}
		a.dpr = c, a.addEventListener("resize", function() {
			clearTimeout(e), e = setTimeout(b, 300)
		}, !1), a.addEventListener("pageshow", function(a) {
			a.persisted && (clearTimeout(e), e = setTimeout(b, 300))
		}, !1), "complete" === f.readyState ? f.body.style.fontSize = 12 * c + "px" : f.addEventListener("DOMContentLoaded", function() {
			f.body.style.fontSize = 12 * c + "px"
		}, !1), b()
	}(window);
		// var targetProtocol = "https:";
	// if (window.location.protocol != targetProtocol){
	// 	window.location.href = targetProtocol + window.location.href.substring(window.location.protocol.length);
	// }
	</script>

</head>
<body style="font-size: 12px;">
			
    <input type="hidden" value="{$wid}" id="hidwid" name="hidwid">
    <input type="hidden" value="{$openid}" id="openid" name="openid">
    <div class="lay_page page_icenter" id="page_icenter">
    <div class="lay_page current">
        <div class="lay_page_wrap">
            <div class="fn_tab qb_flex mod_mb15" id="tab-list">
                <div index="1" class="flex_box">
                    待付款<span class="mod_color_strong">{$dfk_num}</span></div>
                <div index="2" class="flex_box">
                    待收货<span class="mod_color_strong">{$dsh_num}</span></div>
                <div index="3" class="flex_box">
                    已结束<span class="mod_color_strong">{$yjs_num}</span></div>
            </div>
            <div id="itemList">
                <div class="qb_tac mod_color_weak qb_p10">
                    订单加载中...</div>
            </div>
            <div class="qb_tac" style="height:100px;" evttag="loadMore" id="load-more">
            </div>
        </div>
        </div>
        </div>
<!--    <div class="qb_quick_tip qb_none" style="height:100px;" id="bubble">
    </div>-->
<!--			<div class="orderList">				
				<ul class="listul">
					<li data-payprice="35.90" data-leftpaymoney="35.90">
						<div class="part1 clearfix">
							<p class="fl">2016-07-21 11:39:13
																															</p>
							<a href="#" class="fr">待付款</a>
						</div>
						<div class="part2 clearfix" onClick="javascript:window.location.href='order_detail.htm'">
                           
							<div class="part2L fl clearfix">
								<a><img src="/shop/templates/default/images/57846ac5cd0ec.jpg" class="czjz"></a>
								<div class="part2Lnews">
									<p class="tit sem_name" data-length="48">舟顺巴旦木仁90g+舟顺咖啡花生128g+舟....</p>
									<p>￥35.90 </p>
								</div>
															</div>
							<div class="part2R fr">
								<p><a><i><img style="height:0.8rem;width:0.8rem;" src="/shop/templates/default/images/aaa-right.png"></i></a>
								x1</p>
							</div>
						</div>
						<div class="part3">
							<p>共<i>1</i>件商品&nbsp;&nbsp;合计：&nbsp;&nbsp;<strong>￥<i>35.90</i></strong> <span>(含运费￥<i>0.00</i>)</span></p>
						</div>
						<div class="part4 clearfix">
						<a href="#" class="fr zffs">去支付</a>
																																									</div>
					</li>
		
				</ul>
			</div>-->
				
		<div class="footer">
		<ul class="clearfix">
			<li class="selected"><a href="{$indexurl}"><i><img style="height:0.8rem;width:0.8rem;" src="/shop/templates/default/images/icon-home.png"></i><span>首页</span></a></li>
			<li><a href="{$categoryurl}"><i><img style="height:0.8rem;width:0.8rem;" src="/shop/templates/default/images/icon-cat.png"></i><span>分类</span></a></li>
			<li class="head-shopcart "><a href="{$carturl}"><i><img style="height:0.8rem;width:0.8rem;" src="/shop/templates/default/images/icon-cart.png"></i><span>购物车</span></a>
			<li><a href="{$userurl}"><i><img style="height:0.8rem;width:0.8rem;" src="/shop/templates/default/images/icon-user.png"></i><span>我的</span></a></li>
		</ul>
	    </div>
    <script type="text/template" id="item-tpl">
        <li class="{#singleLi#}">
            <img src="{#pic#}" class="{#imgClass#}" width="80" height="80">
            <div class="bfc_c {#singleShow#}">
                <p>{#itemName#}</p>
                {#attr#}
            </div>
        </li>
    </script>
    <script type="text/template" id="container-tpl">
        <div class="mod_cell qb_mb15">
            <div class="mod_celltitle">
                <h3 class="qb_fl">订单编号：{#no#}</h3>
                <i class="qb_fr qb_icon icon_arrow_right"></i>
            </div>
            <a href="javascript:;" onclick="view_order(this)" data-orderid="{#id#}">
                <div class="mod_slider">
                    <div class="slider_cnt">
                        <ul>{#itemPicList#}</ul>
                    </div>
                </div>
            </a>
            <div class="mod_cell_hr"></div>
            <div class="qb_clearfix qb_fs_s qb_mb10 mod_color_weak">
                <div class="qb_fl">{#stateName#}</div>
                <div class="qb_fr">共计{#totalCount#}件商品 总价:<span class="mod_color_strong">&yen;{#totalPay#}</span></div>
            </div>
            <div class="qb_flex qb_mb10 {#pay_show#}" style="display:{#pay_show1#};">
                <div class="mod_select select_block flex_box btn_strong">
                    <select evttag="changePay" dc="{#id#}" payment_id="{#payment_id#}">
                       <option value="-1">去付款</option>
                       <option value="0" pid="3">微支付</option>
                       <option value="1" pid="1">药店取货</option>
                    </select> 
                </div>
                 <span evttag="closeOrder" url="/shop/shopmgr.ashx?myact=order_canel" dc="{#id#}" class="mod_btn btn_block btn_em qb_mr10 flex_box">关闭订单</span>         
            </div>
            <div class="qb_flex qb_mb10 {#receive_show#}">
                <!--<a onclick="view_log(this)" data-orderid="{#id#}" class="mod_btn btn_block qb_mr10 flex_box view_log">查看物流</a>-->
                <span evttag="confirmRecv" url="/shop/shopmgr.ashx?myact=shouhuo" dc="{#id#}" class="mod_btn btn_block btn_em flex_box">确认收货</span>
            </div>
        </div>
    </script>

    <script type="text/template" id="drawback-tpl">
        <div class="qb_gap" id="{#nodeId#}">
            <div class="mod_tips mod_tips_gray arrow_down qb_fs_s" evttag="showDrawList">
                等待退款中(<span class="mod_color_strong">0</span>)
            </div>
        </div>
    </script>
    <script type="text/template" id="booknew-tpl">
        <div class="qb_gap">
            <div class="mod_tips mod_tips_gray arrow_down qb_fs_s" evttag="showBookList">
                新款预订(<span class="mod_color_strong">0</span>)
            </div>
        </div>
    </script>
    <script type="text/template" id="none-tpl">
        <div class="mod_color_weak mod_nocontent qb_fs_s" style="height: {#height#}px;">
            <p>没有{#text#}订单</p>
            <p><a href='{$indexurl}'>返回首页</a></p>
        </div>
    </script>
    <form id="form1" name="form1" method="post">
    <input name="order_id" id="order_id" type="hidden" />
    </form>
    <script src="/shop/templates/default/js/zepto.min.js"></script>
    <script type="text/javascript">
        var dealData = {
            //待收货
            "waitRecvData": { 
                "totalNum": "{$dsh_num}",
                "dealList": [
                                    <vt:foreach from="$o_dsh" item="o" index="i">
                                    <vt:if var="#.i.isend" value="true">
                                            {
                                                "no":"{$o.order_no}", "id": "{$o.id}",  "dt": "{$o.real_amount call='ComputeMoney'}", "ds": "62", "il":
                                                    [
                                                    <vt:foreach from="$o.order_product" item="g" index="j">
                                                        <vt:if var="#.j.isend" value="true">
                                                            { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" }
                                                        <vt:else>
                                                             { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" },
                                                         </vt:if>
                                                    </vt:foreach> 
        ],
                                                                    "pt": "1",
                                                                    "sc": "{$o.status}" 
        }
                                                        <vt:else>
                                                                {
                                                                    "no":"{$o.order_no}", "id": "{$o.id}",  "dt": "{$o.real_amount call='ComputeMoney'}", "ds": "62", "il":
                                                                        [
                                                                        <vt:foreach from="$o.order_product" item="g" index="j">
                                                                            <vt:if var="#.j.isend" value="true">
                                                                                { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" }
                                                                                <vt:else>
                                                                                    { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" },
                                                                    </vt:if>                                     
                                                                        </vt:foreach> 
        ],
                                                                    "pt": "1", "sc": "{$o.status}"  }  ,
                                                                </vt:if>
                                                            </vt:foreach>
        ]
        },
                            "drawback": { "totalNum": 0, "dealList": []},
        //待付款
                        "waitPayData": {  
                            "totalNum": "{$dfk_num}",
                            "dealList": [
                                <vt:foreach from="$o_dfu" item="o" index="i">
                                <vt:if var="#.i.isend" value="true">
                                     {
                                         "no":"{$o.order_no}", "id": "{$o.id}", "dt": "{$o.order_amount call='ComputeMoney'}", "ds": "60", "il":
                                             [
                                             <vt:foreach from="$o.order_product" item="g" index="j">
                                                 <vt:if var="#.j.isend" value="true">
                                                      { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" }
                                                  <vt:else>
                                                           { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" },
                                            </vt:if>
                                             </vt:foreach> 
                        ], "pt": "1", "sc": "{$o.status}" }
        <vt:else>
        {
            "no":"{$o.order_no}", "id": "{$o.id}",  "dt": "{$o.order_amount call='ComputeMoney'}", "ds": "60", "il":
            [
            <vt:foreach from="$o.order_product" item="g" index="j">
                <vt:if var="#.j.isend" value="true">
                     { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" }
                     <vt:else>
                          { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" },
           </vt:if>
                                     
            </vt:foreach> 
        ], "pt": "1", "sc": "{$o.status}"  }  ,
        </vt:if>
       </vt:foreach>
        ]
        },
        //已结束
            "end": { 
                "totalNum": "{$yjs_num}",
               "dealList": [
                   <vt:foreach from="$o_yjs" item="o" index="i">
                   <vt:if var="#.i.isend" value="true">
                        {
                            "no":"{$o.order_no}", "id": "{$o.id}","pay_show1":"none;",  "dt": "{$o.order_amount call='ComputeMoney'}", "ds": "60", "il":
                                [
                                <vt:foreach from="$o.order_product" item="g" index="j">
                                    <vt:if var="#.j.isend" value="true">
                                         { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" }
                                     <vt:else>
                                              { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" },
                               </vt:if>
                                </vt:foreach> 
            ], "pt": "1", "sc": "{$o.status}" }
        <vt:else>
        {
            "no":"{$o.order_no}", "id": "{$o.id}", "pay_show1":"none;", "dt": "{$o.order_amount call='ComputeMoney'}", "ds": "60", "il":
            [
            <vt:foreach from="$o.order_product" item="g" index="j">
                <vt:if var="#.j.isend" value="true">
                     { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" }
                     <vt:else>
                          { "sn": "{$g.sku}", "mid": "{$g.id}", "name": "{$g.productName}", "pic": "{$g.focusImgUrl}", "din": "{$g.stock}" },
           </vt:if>
                                     
            </vt:foreach> 
        ], "pt": "1", "sc": "{$o.status}"  }  ,
        </vt:if>
       </vt:foreach>
        ]

        },
            "errCode": "0", "newItems": { "totalNum": 0, "dealList": [] }
        };
            mobile.o2ocn.myorder.init();
            function view_order(e) {
                var orderid = $(e).data("orderid");
                window.location = "/shop/order_detail.aspx?orderid=" + orderid + "&" + window.baseParam;
            }

            function view_log(e) {
                var orderid = $(e).data("orderid");
            }
    </script>
</body>

</html>